package com.unitd.modules.gen.entity;

import com.unitd.modules.sys.entity.SysDict;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.List;

/**
 * @desc 生成方案Entity, 用于定义生成的表结构的模板类型信息
 * @filename GenConfig.java
 * @copyright www.unitd.com
 * @author Hudan
 * @version 1.0
 * @date 2017/4/27
 */
@XmlRootElement(name = "config")
public class GenConfig implements Serializable {

	private List<GenCategory> categoryList; 					// 代码模板分类
	private List<SysDict> javaTypeList; 						// Java类型
	private List<SysDict> queryTypeList; 						// 查询类型
	private List<SysDict> showTypeList; 						// 显示类型
	private List<SysDict> baseJavaTypeList; 					// 基本的与数据库对应的java类型,用于在生成文件的时间做屏蔽处理使用

	public GenConfig() {
		super();
	}

	@XmlElementWrapper(name = "category")
	@XmlElement(name = "category")
	public List<GenCategory> getCategoryList() {
		return categoryList;
	}

	public void setCategoryList(List<GenCategory> categoryList) {
		this.categoryList = categoryList;
	}

	@XmlElementWrapper(name = "javaType")
	@XmlElement(name = "dict")
	public List<SysDict> getJavaTypeList() {
		return javaTypeList;
	}

	public void setJavaTypeList(List<SysDict> javaTypeList) {
		this.javaTypeList = javaTypeList;
	}

	@XmlElementWrapper(name = "queryType")
	@XmlElement(name = "dict")
	public List<SysDict> getQueryTypeList() {
		return queryTypeList;
	}

	public void setQueryTypeList(List<SysDict> queryTypeList) {
		this.queryTypeList = queryTypeList;
	}

	@XmlElementWrapper(name = "showType")
	@XmlElement(name = "dict")
	public List<SysDict> getShowTypeList() {
		return showTypeList;
	}

	public void setShowTypeList(List<SysDict> showTypeList) {
		this.showTypeList = showTypeList;
	}

	@XmlElementWrapper(name = "baseJavaType")
	@XmlElement(name = "dict")
	public List<SysDict> getBaseJavaTypeList() {
		return baseJavaTypeList;
	}

	public void setBaseJavaTypeList(List<SysDict> baseJavaTypeList) {
		this.baseJavaTypeList = baseJavaTypeList;
	}
}